import api from "@/api/axiosApi"
import QueryString from "qs";

const order = {
	SubmitAnOrder(url,params){//购物车提交订单
		return api.post(url,params)
	},
	queryOrderAll(url,params){
		return api.get(url,params)//查询全部订单
	},
	orderStuList(url,params){
		return api.get(url,params)//查询全部未支付订单
	},
	QueryDetailsAll(url,params){//当前用户所有订单与商品信息
		return api.get(url,params)
	},
	deleteOrder(url,params){
		return api.del(url,params)
	},
	submitOrder(url,params){//立即购买页提交订单
		return api.post(url,params)
	},
	postRefund(url,params){//申请退款
		return api.post(url,params)
	},
	deliverGoods(url,params){
		return api.put(url,params)
	},
	selectNonPayAll(url,params){//查询所有未支付订单
		return api.get(url,params)
	},
	selectAllNoRefund(url,params){//查询所有退款订单
		return api.get(url,params)
	},
	/**
	 * 全部未发货订单
	 */
	selectDeliver(url,params){
		return api.get(url,params)
	},
	/**
	 * 后台全部未收货订单
	 */
	selectNotReceive(url,params){
		return api.get(url,params)
	},
	/**
	 * 查当前订单详情
	 * @param {Object} url
	 * @param {Object} params
	 */
	getOrderDetails(url,params){
		return api.get(url,params)
	},
	/**
	 * 用户申请退款
	 */
	postApplyFor(url,params){
		return api.post(url,params)
	},
	/**
	 * 用户进行收货
	 */
	postTakeDelivery(url,params){
		return api.post(url,params)
	},
	
}

export default order;